package com.gitee.wsl.mathematics.complex.quaternion.ext

import com.gitee.wsl.mathematics.complex.quaternion.Quat

/**
 * Linear interpolation between [from] and [to] in spherical space
 */
fun Quat.slerp(to: Quat, fraction: Double): Quat =
    (to / this).pow(fraction) * this